#include<bits/stdc++.h>
#define ll long long
#define F first
#define S second
#define mp make_pair
#define vi vector<int>
#define pb push_back
#define pii pair<int,int>

using namespace std;
const int N=2e5+5;
const int mod=1e9+7;
int n,a[N],m;
int main()
{
    freopen("duel.in","r",stdin);
    freopen("duel.out","w",stdout);
    scanf("%d",&n);
    for(int i=0;i<n;i++)scanf("%d",&a[i]);
    sort(a,a+n);
    for(int i=1;i<n;i++){
        if(a[m]<a[i]){
            m++;
        }
    }
    printf("%d\n",n-m);
    return 0;
}